package com.tz.dream.architect.mvp.framework.lce.impl.animator;

import android.view.View;

import com.tz.dream.architect.mvp.framework.lce.ILceAnimator;

/**
 * 作者: Dream on 2018/3/19 20:49
 * QQ:510278658
 * E-mail:510278658@qq.com
 */

//框架内部->提供默认策略动画(具体动画逻辑忽略->根据具体的需求决定)
public class DefaultLceAnimator implements ILceAnimator {

    @Override
    public void showLoadingView(View loadingView, View contentView, View errorView) {
        AnimatorUtils.getInstance().showLoading(loadingView, contentView, errorView);
    }

    @Override
    public void showContentView(View loadingView, View contentView, View errorView) {
        AnimatorUtils.getInstance().showContent(loadingView, contentView, errorView);
    }

    @Override
    public void showErrorView(View loadingView, View contentView, View errorView) {
        AnimatorUtils.getInstance().showErrorView(loadingView, contentView, errorView);
    }

}
